<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/domain',
    'namespace' => 'Buu\\Modules\\Domain\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/index', 'DomainConfigController@index');
    $router->get('/index/create', 'DomainConfigController@create');
    $router->get('/copy/{id}', 'DomainConfigController@copy');
    $router->delete('/index/{id}', 'DomainConfigController@del');
    $router->get('/edit/{id}', 'DomainConfigController@edit');
    $router->post('/updateTemplate/{id}', 'DomainConfigController@updateTemplate');


    $router->post('/save', 'DomainConfigController@save');
    $router->post('edit/editSave', 'DomainConfigController@editSave');
    $router->get('/template/index', 'TemplateHostController@index');
    $router->get('/template/index/create', 'TemplateHostController@create');
    $router->get('/template/edit/{id}', 'TemplateHostController@create');
    $router->get('/template/copy/{id}', 'TemplateHostController@copy');
    $router->post('/template/save', 'TemplateHostController@save');
    $router->delete('/template/index/{id}', 'TemplateHostController@del');

});
